﻿using System;
using System.Configuration;

namespace TempEmployees.BLL.UserAccess.ActiveDirectory.Configuration
{
    class RoleElement : ConfigurationElement
    {
        [ConfigurationProperty("name", IsKey = true, IsRequired = true)]
        public string Name
        {
            get { return this["name"] as string; }
            set { this["name"] = value; }
        }

        [ConfigurationProperty("id", IsRequired = true)]
        public int ID
        {
            get { return int.Parse(this["id"].ToString()); }
            set { this["id"] = value; }
        }

        [ConfigurationProperty("dn", IsRequired = true)]
        public string DN
        {
            get { return this["dn"] as string; }
            set { this["dn"] = value; }
        }
    }
}
